package com.example.demo.zaqizabatest;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @ClassName Aaa
 * @Author lys4134
 * @Date 2021/12/09 14:12:06
 * @Description Aaa
 * @Version 1.0
 **/
public class Aaa {
    private String name;
    private String pwd;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "Aaa{" +
                "name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                '}';
    }

    public static void main(String[] args) {
        final Pattern pattern = Pattern.compile("xxx");
        final Matcher matcher = pattern.matcher("xxx1xxx2xx");
        System.out.println(matcher.toString());
    }
}
